package com.luomo.wenyuan.modules.wenyuan.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.luomo.wenyuan.modules.wenyuan.entity.TOrderBookEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author
 * @email
 * @date 2020-10-19 15:58:39
 */
@Mapper
public interface TOrderBookDao extends BaseMapper<TOrderBookEntity> {

    List<TOrderBookEntity> getByOrderId(int orderId);

    Integer getBookNumByPurchaseIdAndBookId(@Param("purchaseId") int purchaseId, @Param("bookId") int bookId);
}
